package com.googlecode.mvcguice.util;

import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Set;

public class ReflectionUtils {
	private ReflectionUtils() {
	}

	private static final Set<Method> OBJECT_METHODS;
	static {
		final Method[] methods = Object.class.getMethods();
		OBJECT_METHODS = new HashSet<Method>(methods.length);
		for (Method method : methods) {
			OBJECT_METHODS.add(method);
		}
	}

	public static boolean isObjectMethod(Method method) {
		return OBJECT_METHODS.contains(method);
	}
}
